package com.lwm.base;

import java.util.Scanner;

/**
 * @author liweimin
 * @date 2020/9/23 8:58
 * @description
 */
public class ScannerTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //next无法获得空格
        if (scanner.hasNext())
            System.out.println(scanner.next()+"scanner扫描");
        scanner.close();
        if(scanner.hasNextLine())
            System.out.println(scanner.nextLine());
    }
}
